package com.matongxue.springboot.user.dao;

import com.matongxue.springboot.user.pojo.ApiTestCase;
import com.matongxue.springboot.user.pojo.UserTest2;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

public interface ApiTestCaseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ApiTestCase record);

    int insertSelective(ApiTestCase record);

    ApiTestCase selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ApiTestCase record);

    int updateByPrimaryKey(ApiTestCase record);

    //注解
    @Select("select * from tb_api_case where case_name like '%${name}%'")
    List<ApiTestCase> findCaseName(@Param("name") String name);
}
